package ru.efko.dims.util;

import java.io.IOException;
import java.nio.channels.SocketChannel;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;

public final class LifecycleManager {

	public static void resourcesKiller() {
//		connectionCloser();
		threadsKiller();
	}

	private static void threadsKiller() {

	}

	private static void threadShutDown(ExecutorService pool) {
		pool.shutdown();
		try {
			if (!pool.awaitTermination(3, TimeUnit.SECONDS)) {
				pool.shutdownNow();
			}
		} catch (InterruptedException ie) {
			pool.shutdownNow();
			Thread.currentThread().interrupt();
		}
	}

}
